﻿

using System.Configuration;

namespace PipeDetection.Repository.Base1
{
    public class BaseDBConfig
    {
        private static readonly string sqlServerConnection = ConfigurationManager.AppSettings["detdb"]; //获取连接字符串

        public static string ConnectionString = sqlServerConnection;

        //正常格式是

        //public static string ConnectionString = "server=.;uid=sa;pwd=sa;database=WMBlogDB"; 

        //原谅我用配置文件的形式，因为我直接调用的是我的服务器账号和密码，安全起见
    }
}